<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title></title>
	</head>
	<body>

	</body>
</html>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
<script type="text/javascript">
    
	var IMG_LIST=
	[
		"https://img.alicdn.com/imgextra/i4/2501786402/O1CN01pYYMtp1xAA6qQShSw_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i4/2501786402/O1CN01rkXINB1xAA6nsfdz4_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i1/2501786402/O1CN01ACKePQ1xAA6WvSTwd_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i3/2501786402/O1CN011xAA5Wc3stCxjuK_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i3/2501786402/O1CN01CvkVFq1xAA6oH5zvB_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i2/2501786402/O1CN01S4xI7K1xAA6p1XfaN_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i1/2501786402/O1CN015bZn6W1xAA6pcpzNx_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i1/2501786402/O1CN011xAA5YB9upxWKGC_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i1/2501786402/O1CN01Hx7F171xAA5XDcqk2_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i1/2501786402/O1CN01556coo1xAA5WKZBji_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i3/2501786402/O1CN01vUR7gp1xAA6pf1S4s_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i1/2501786402/O1CN01JzIUCF1xAA6qJZ7IC_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i1/2501786402/O1CN01DcpZSG1xAA5UPwvxH_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i1/2501786402/O1CN01QfLGjv1xAA6pcoVw3_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i3/2501786402/O1CN01RSvAiN1xAA6pcqG1t_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i2/2501786402/O1CN01Y0CJLn1xAA6pEqtC9_!!2501786402.jpg",
		"https://img.alicdn.com/imgextra/i1/2501786402/O1CN01bOeGqK1xAA6pEqYMd_!!2501786402.jpg"
	]

	
	function ImgAjax(val) {
		// var imgurl = 'https://img.alicdn.com/imgextra/i4/2501786402/O1CN015r6UlO1xAACS6E5TH_!!2501786402.jpg'
		// var imgurl = 'https://img.alicdn.com/imgextra/i1/2501786402/O1CN01c79FHj1xAACbMZycF_!!2501786402.jpg'
		// var imgurl = 'https://img.alicdn.com/imgextra/i2/2501786402/O1CN01Y95UXv1xAABBUtKqU_!!2501786402.gif'
		// var imgurl = 'https://img.alicdn.com/imgextra/i2/2501786402/O1CN01Y95UXv1xAABBUtKqU_!!2501786402.gif'
		$.ajax({
			// url: imgurl,
			url: val,
			methods: 'GET',
			encoding: null,
			scriptCharset: 'UTF-8',
			datatype : "json",
			contentType: "application/x-www-form-urlencoded; charset=utf-8",
			beforeSend: function(request) {
				request.setRequestHeader("X-Socket-Id", null);
			},
			success: (data) => {
				console.log('data')
			},
			error: (err) => {
				console.log("err",err)
				//             if(tab == 1){
				//               this.mapErrImage.push(imgurl)
				//             }else if(tab == 2){
				//               this.detailErrImages.push(imgurl)
				//             }
			}
		})
	}
	for(var i=0;i<IMG_LIST.length;i++){
		ImgAjax(IMG_LIST[i])
	}

	//  var b=[
	// 	 {
	// 		 name:'1',
	// 		 age:'1',
	// 	 },{
	// 		 name:'2',
	// 		 age:'2',
	// 	 },
	//  ]
	//  var data={}
	//  b.map((item,index)=>{
	// 	  data['grade['+index+'][num]']=item.name
	// 	  data[index]=item.age
	//  })
	// console.log(data)



	// var map = new Array();//二维数组
	// var map2 = new Array();//一维数组
	// var form = [
	// 	{
	// 		pay_num:1,
	// 		pay_amount:10,
	// 	},{
	// 		pay_num:2,
	// 		pay_amount:20,
	// 	},{
	// 		pay_num:3,
	// 		pay_amount:30,
	// 	},{
	// 		pay_num:4,
	// 		pay_amount:41,
	// 	},
	// ]


	// for (var i = 0; i < form.length; i++) {

	// 　　map[i]= {num:form[i].pay_num,amount:form[i].pay_amount};//二维数组

	// 　　map2.push(form[i].pay_num);//一维数组
	// }


	// console.log(JSON.stringify(map));
	// console.log(JSON.stringify(map2));

	// var map_index_arr = [
	// 	{
	// 		property_list:[
	// 			{
	// 				property_field:"city_list"
	// 			}
	// 		]
	// 	},{
	// 		property_list:[
	// 			{
	// 				property_field:"grade_list"
	// 			}
	// 		]
	// 	},{
	// 		property_list:[
	// 			{
	// 				property_field:"first_create_time"
	// 			}
	// 		]
	// 	},{
	// 		property_list:[
	// 			{
	// 				property_field:"first_pay_time"
	// 			}
	// 		]
	// 	},
	// ]
	// var arr = [];//用来存放合并列数
	//  var data = [["煤",'1'],["石油",'2'],["纸",'3'],["纸",'4'],["煤",'5'],["煤",'5'],["石油",'7']];
	//  var data = [
	//   [1,100],
	//   [1,101],
	//   [1,102],
	//   [1,103],
	//   [1,104],
	//   [2,105],
	//   [2,106],
	//   [2,107],
	//   [2,108],
	//  ]
	//  data.sort();//注意，一定要排序，不排序，会重复判断，从而错误
	//  for (var i = 0; i < data.length;) {//按照属性判断属性合并列数
	//      var count = 0;
	//   var list=[]
	//      for (var j = i; j < data.length; j++) {
	//           if(data[i][0]== data[j][0]){
	//                  count++;
	// 			   list.push(data[j][1])
	//           }
	//      }
	//       arr.push({
	//             plName:data[i][0],
	//             count: list
	//       })
	//       i+=count;
	//   }
	//   console.log(arr)
	//   for (var k = 0; k < arr.length; k++) {
	//        console.log(arr[k])
	//    }

	// var a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
	// var d = [1, 2, 3]
	// // var c = [1,3] //改变后的d
	// var c = [1, 2, 3, 4, 5]
	// var e = d.filter(v => c.indexOf(v) == -1)
	// console.log('e', e)
	// var send = a.concat(c)


	/** 昨日之日不可留，进今日之日多烦忧。
	jjll
	
	测试数据接口模拟话，接口数据处理
	接口数据测试，
	接口数据data渲染
	接口数据对接
	功能优化处理
	样式优化
	包缩小优化
	在下半部分在一如注入上古去拜访故意的怎他不发了先把这个数据处理完成之后再次处理
	测试需要改和优化
	
	
	  
	  
	  
	*/
</script>
